import React from 'react';
import {
  Text,
  StyleSheet,
} from 'react-native';
import _ from 'lodash';

const styles = StyleSheet.create({
  defaultFontFamily: {
    // color: '#ffffff',
  },
});
Text.render = _.wrap(Text.render, function (func, ...args) {
  const originText = func.apply(this, args);
  return React.cloneElement(originText, {
    style: [
      styles.defaultFontFamily,
      originText.props.style,
    ],
  });
});
